#ifndef __LOGGERPLAINTEXT_H__
#define __LOGGERPLAINTEXT_H__

#include "Logger.h"
#include <stdio.h>

namespace RayFrame
{
  class LoggerPlainText: public LogPolicy
  {
  protected:
    FILE*   m_file;
    STRING m_filename;

    virtual void internalCreate();
    virtual void internalDestroy();
  public:
    LoggerPlainText();

    virtual void Create(STRING filename);
    virtual void Destroy();

    virtual void Write(STRING content, LogLevel level);
    virtual void WriteBanner(STRING content);
  };
};

#endif